﻿using Admin.Application.Dto;
using Admin.Database.Enums;
using Admin.Database.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Application.DynamicApi.System.Menu.Dto
{
	public class MenuInput
	{
		/// <summary>
		/// 标题
		/// </summary>
		public string Title { get; set; }

		/// <summary>
		/// 菜单类型（1目录 2菜单 3按钮）
		/// </summary>
		public MenuTypeEnum? Type { get; set; }

		/// <summary>
		/// 租户Id
		/// </summary>
		public virtual long TenantId { get; set; }
	}

	public class AddMenuInput : SysMenu
	{
		/// <summary>
		/// 名称
		/// </summary>
		[Required(ErrorMessage = "菜单名称不能为空")]
		public override string Title { get; set; }

		/// <summary>
		/// 租户Id
		/// </summary>
		public long TenantId { get; set; }
	}

	public class UpdateMenuInput : AddMenuInput
	{
	}

	public class DeleteMenuInput : BaseIdInput
	{
	}
}
